package com.lilingguo.easyserver.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * Client端配置
 *
 * @Author: 黎铃果
 * @Date: 2020/5/28 16:19
 */
@Data
@Component
@ConfigurationProperties(
        prefix = "easyserver.client"
)
public class ClientProperties {

    /**
     * 本机IP地址，默认 localhost
     */
    private String ip;
    /**
     * 存活时间，默认90s
     */
    private int healthTtl = 90000;
    /**
     * 心跳间隔，默认30s
     */
    private int healthTickRate = 30000;
    /**
     * 更新间隔，默认30s
     */
    private int updateRate = 30000;

}
